/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.scene.domain;

import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.sql.Timestamp;
import java.util.Date;

@ApiModel(value = "设备检验记录", description = "设备检验记录实体类")
public class DeviceCalibration extends BaseEntity {

    public DeviceCalibration() {
        super();
    }

    public DeviceCalibration(String userCode, String userName) {
        super.setAddUser(userCode);
        super.setAddUserName(userName);
        super.setAddTime(new Date());
        super.setUpdateUser(userCode);
        super.setUpdateUserName(userName);
        super.setUpdateTime(super.getAddTime());
    }

    @ApiModelProperty(value = "水司code", name = "corpCode", required = true)
    private String corpCode;

    @ApiModelProperty(value = "水司名称", name = "corpName", required = true)
    private String corpName;

    @ApiModelProperty(value = "标题", name = "title", required = true)
    private String title;

    @ApiModelProperty(value = "设备负责人code", name = "responsibleEmployeeCode" )
    private String responsibleEmployeeCode;

    @ApiModelProperty(value = "设备负责人姓名", name = "responsibleEmployeeName" )
    private String responsibleEmployeeName;

    @ApiModelProperty(value = "检验报告编号", name = "executerCode" )
    private String reportCode;

    @ApiModelProperty(value = "检验单位", name = "calibrationCorp" )
    private String calibrationCorp;

    @ApiModelProperty(value = "状态：0草稿、1审核中、2审核通过", name = "status" )
    private Integer status;

    @ApiModelProperty(value = "描述", name = "description" )
    private String description;

    @ApiModelProperty(value = "送检日期", name = "submissionDate" )
    private Timestamp submissionDate;

    @ApiModelProperty(value = "附件", name = "attachment" )
    private String attachment;

    @ApiModelProperty(value = "附件预览", name = "attachmentPreview" )
    private String previewAttachment;

    public String getCorpCode() {
        return corpCode;
    }

    public void setCorpCode(String corpCode) {
        this.corpCode = corpCode;
    }

    public String getCorpName() {
        return corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getResponsibleEmployeeCode() {
        return responsibleEmployeeCode;
    }

    public void setResponsibleEmployeeCode(String responsibleEmployeeCode) {
        this.responsibleEmployeeCode = responsibleEmployeeCode;
    }

    public String getResponsibleEmployeeName() {
        return responsibleEmployeeName;
    }

    public void setResponsibleEmployeeName(String responsibleEmployeeName) {
        this.responsibleEmployeeName = responsibleEmployeeName;
    }

    public String getReportCode() {
        return reportCode;
    }

    public void setReportCode(String reportCode) {
        this.reportCode = reportCode;
    }

    public String getCalibrationCorp() {
        return calibrationCorp;
    }

    public void setCalibrationCorp(String calibrationCorp) {
        this.calibrationCorp = calibrationCorp;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Timestamp getSubmissionDate() {
        return submissionDate;
    }

    public void setSubmissionDate(Timestamp submissionDate) {
        this.submissionDate = submissionDate;
    }

    public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    public String getPreviewAttachment() {
        return previewAttachment;
    }

    public void setPreviewAttachment(String previewAttachment) {
        this.previewAttachment = previewAttachment;
    }

    @Override
    public String toString() {
        return "DeviceCalibration{" +
                "corpCode='" + corpCode + '\'' +
                ", title='" + title + '\'' +
                ", responsibleEmployeeCode='" + responsibleEmployeeCode + '\'' +
                ", responsibleEmployeeName='" + responsibleEmployeeName + '\'' +
                ", reportCode='" + reportCode + '\'' +
                ", calibrationCorp='" + calibrationCorp + '\'' +
                ", status=" + status +
                ", description='" + description + '\'' +
                '}';
    }


}
